package models

//公告类型
type AnnouncementType int

const (
	NormalAnnounce AnnouncementType = 1 + iota //普通公告
)

type Announcement struct {
	BaseBean         `xorm:"extends"`
	AnnounceType     AnnouncementType //公告类型
	AnnounceContent  string           //内容
	AnnounceTitle    string           //标题
	AnnouncePicUrl   string           //图片链接地址
	AnnounceAbstract string           //图片摘要
}

//返回一个annoucement
func NewAnnouncement(announcementContent string) *Announcement {
	return &Announcement{
		AnnounceContent: announcementContent,
	}
}
